<!-- /* Description for file.
 * 客户状态列表页面
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/customerstates
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0701
 * @lastmodified  张朋2011年0701
 -->
<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
?>
<script type="text/javascript">
$(document).ready(function(){
$("#showadd").click(function(){
	$(".newdeducation").toggle();
	});
});
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Customersetting');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('CustomerState',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->

<!--定制新增iframe-->
<div class="newdeducation" style="display:none;">
	<div class="tabflex" style="margin-left:20px;width:90%">
		<iframe id="newdeducation" name="newdeducation" height="100%" width="100%" border="0" frameborder="0"  scrolling="no"
			src="<?php echo $html->url(array('controller' => 'customerstates','action' => 'add'));?>">
		</iframe>
	</div>
</div>
<!--定制新增iframe-->

<div class="tabflex">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<td width="100px">
		 <a id="showadd"><?php echo $html->image('setting.gif', 
		 							array('alt' =>  __('Add', true),'title'=>'定制','border'=>'0','id'=>'showadd')); ?><?php echo __('CustomerState');?></a>
		</td><!--  __('Add', true) 定制-->
		<td></td>		
	</tr>
</table>
</div>

<!--               列表操作-->
<div id="nav1" width="100%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th><?php echo __('customerStateName');?></th>
		<th class="actions" colspan="2" width="80px"><?php __('Actions');?></th>
	</tr>
		<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php
		foreach ($customerstates as $customerstate):
	?>
	<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
		<td title="<?php echo $customerstate['Customerstate']['customerStateName']?>"><?php echo $html->link($customerstate['Customerstate']['customerStateName'], array('action' => 'edit',  $customerstate['Customerstate']['id'])); ?>
		</td>
		<td >
			<?php echo $html->link( $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0')), '/customerstates/delete/' . $customerstate['Customerstate']['id'], null, 
			__('Are you sure you want to delete', true) .' '. '?',array('escape'=>false));  ?> 		
		</td><!--  __('delete', true) 删除、提示 -->
		<td >
			<?php echo $html->link( $html->image('edit.gif', array('alt' =>  __('Edit', true),'border'=>'0')), '/customerstates/edit/' . $customerstate['Customerstate']['id'], null,null,
			array('escape'=>false));  ?> 	
		</td><!--  __('edit', true) 修改 -->
	</tr>
<?php endforeach; ?>

</table>
</div>
